package com.zrwl.poscloud.base.entity;

import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.zrwl.poscloud.base.superI.SuperEntity;
import lombok.Data;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author 刘思童
 * @create 2021/1/25 19:49
 **/

@Data
@ToString
@TableName("t_employee")
public class Employee extends SuperEntity<Company> {
    private static final long serialVersionUID = 1L;
    private String name;
    private String employeeCode;
    private String companyCode;//这个是部门id，不是公司id
    private String certCode;//身份证
    private int type;
    private int payLevel;
    private int sex;
    private String labelDataUid;
    private String labelData;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date birthday;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date enterDate;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date leaveDate;
    private int isFacePayment;
    private double dailyLimit;
    private double monthlyLimit;
    private int syncCode;
    private String defaultPwd;
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private String adminUid;
    private String mobile;
    private String remark;
    private int isVip;
    private int giftCount;
    private String sourceUid;
    private String nameEndWith;
    private int sourceType;
}
